Python 之pyinstaller模块打包成exe文件 您所在的位置:网站首页 python pyinstaller 打包 Python 之pyinstaller模块打包成exe文件

Python 之pyinstaller模块打包成exe文件

#Python 之pyinstaller模块打包成exe文件| 来源: 网络整理| 查看: 265

一、安装pyinstaller

pip install pyinstaller

Python 之pyinstaller模块打包成exe文件_分享

 

 二、下载安装pyinstaler运行时所需要的windows扩展pywin32

https://github.com/mhammond/pywin32/releases

三、打包exe程序

icon制作网址:http://www.bitbug.net/

pyinstaller -F -w -i G:/记事本/icon.ico ./miniText.py

Python 之pyinstaller模块打包成exe文件_分享_02

 

参数含义:

-F  指定打包后只生成一个exe格式的文件(建议写上这个参数)

-D  –onedir 创建一个目录,包含exe文件,但会依赖很多文件(默认选项)

-c  –console, –nowindowed 使用控制台,无界面(默认)

-w  –windowed, –noconsole 使用窗口,无控制台

-p  添加搜索路径,让其找到对应的库。

-i  改变生成程序的icon图标



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有